/*
 * 杭州绿漫科技有限公司
 * Copyright (c) 16-6-21 下午8:36.
 */

package com.jams.goodox.entity;

import java.io.Serializable;
import java.util.ArrayList;

public class PayInfo implements Serializable {
    private String orderCode;
    private String orderId;
    private String referTime;
    private ArrayList<Integer> payType;//   0 一个都没选中， 1是支付宝， 2是微信， 3是银联
    private String orderMoney;// 真实需要支付的金额
    private int orderCreateClassfiy = 1;//1个人订单 2企业订单
    private int paySubCode;//场地预定or停车申请，传递来源
    private double redPacketMoney;//红包金额
    private double onlinePayDiscount = 10.0;//折扣
    private double orderAllMoney;//订单合计金额
    private String serverName;//服务名称
    private String thirdPayConfigType;//根据该字段获取第三方支付配置

    public double getRedPacketMoney() {
        return redPacketMoney;
    }

    public void setRedPacketMoney(double redPacketMoney) {
        this.redPacketMoney = redPacketMoney;
    }

    public double getOnlinePayDiscount() {
        return onlinePayDiscount;
    }

    public void setOnlinePayDiscount(double onlinePayDiscount) {
        this.onlinePayDiscount = onlinePayDiscount;
    }

    public double getOrderAllMoney() {
        return orderAllMoney;
    }

    public void setOrderAllMoney(double orderAllMoney) {
        this.orderAllMoney = orderAllMoney;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public int getOrderCreateClassfiy() {
        return orderCreateClassfiy;
    }

    public void setOrderCreateClassfiy(int orderCreateClassfiy) {
        this.orderCreateClassfiy = orderCreateClassfiy;
    }


    public String getReferTime() {
        return referTime;
    }

    public void setReferTime(String referTime) {
        this.referTime = referTime;
    }

    public double getOrderMoney() {
        double d;
        if (orderMoney != null) {
            try {
                d = Double.parseDouble(orderMoney);
            } catch (NumberFormatException e) {
                d = 0.00;
            }
            return d;
        } else
            return 0.00;
    }

    public void setOrderMoney(String orderMoney) {
        this.orderMoney = orderMoney;
    }

    public ArrayList<Integer> getPayType() {
        return payType;
    }

    public void setPayType(ArrayList<Integer> payType) {
        this.payType = payType;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderId() {
        if(orderId == null){
            return "";
        }
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getPaySubCode() {
        return paySubCode;
    }

    public void setPaySubCode(int paySubCode) {
        this.paySubCode = paySubCode;
    }

    public String getThirdPayConfigType() {
        return thirdPayConfigType;
    }

    public void setThirdPayConfigType(String thirdPayConfigType) {
        this.thirdPayConfigType = thirdPayConfigType;
    }
}
